import request from '@/utils/request'
const req = request.service;

export default{
    queryDict(data){

        const postData = data || {}
        return req({
            url: "/dict",
            method: 'post',
            data:postData
        })
    },
    delDict(data){

        return req({
            url: '/dict/delete',
            method: 'post',
            data:data
        })
    },
    saveDict(data){
        return req({
            url: data.zdzj?'/dict/save':'/dict/add',
            method: 'post',
            data:data
        })
    },
    queryDictInfo(data){

        const postData = data || {}
        return req({
            url: "/dict/info",
            method: 'post',
            data:postData
        })
    },
    delDictInfo(data){
        return req({
            url: '/dict/info/delete',
            method: 'post',
            data:data
        })
    },
    saveDictInfo(data){
        return req({
            url: data.tmzj?'/dict/info/save':'/dict/info/add',
            method: 'post',
            data:data
        })
    },
}